<?php


/**
 * Dcat-admin - admin builder based on Laravel.
 * @author jqh <https://github.com/jqhph>
 *
 * Bootstraper for Admin.
 *
 * Here you can remove builtin form field:
 *
 * extend custom field:
 * Dcat\Admin\Form::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Column::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Filter::extend('php', PHPEditor::class);
 *
 * Or require js and css assets:
 * Admin::css('/packages/prettydocs/css/styles.css');
 * Admin::js('/packages/prettydocs/js/main.js');
 *
 */

global $__MINI_GLOBAL_TENANT_ID__,$__MINI_GLOBAL_TENANTS_ARR__;
$__MINI_GLOBAL_TENANT_ID__ = (int)str_replace(env('APP_ADMIN_PREFIX').'_', '', config('admin.route.prefix'));
if(!in_array($__MINI_GLOBAL_TENANT_ID__, $__MINI_GLOBAL_TENANTS_ARR__) && $__MINI_GLOBAL_TENANT_ID__ <= 0){
    exit('tetent_id不合法');
}
require app_path('Common/admin/bootstrap_common.php');